const { DataTypes } = require('sequelize');
const sequelize = require('../db');

const DirList = sequelize.define('DirList', {
  dirpath: { //名称
    type: DataTypes.STRING(255),
    allowNull: false,
  },
  daxiao: {// 范围
    type: DataTypes.STRING(255),
    allowNull: false,
  },
  jindu: {// 范围
    type: DataTypes.STRING(255),
    allowNull: false,
  },
  haoshi: {// 范围
    type: DataTypes.STRING(255),
    allowNull: false,
  },
  kaishitime: {// 影像时间
    type: DataTypes.DATE,
    allowNull: false,
  },
});

module.exports = {DirList, sequelize};